package com.ruoyi.web.domain.user.vo;

import io.swagger.annotations.ApiModelProperty;

public class SubscribeVo {

    private Long uid;

    @ApiModelProperty(value = "1活动开始,2活动报名,3线下活动开始")
    private Integer type;

    @ApiModelProperty(value = "developer为开发版；trial为体验版；formal为正式版；默认为正式版")
    private String version;

    @ApiModelProperty(value = "模板id")
    private String templateId;

    @ApiModelProperty(value = "小程序中的到达页面")
    private String page = "/page/my/page";

    @ApiModelProperty(value = "指定的活动ID")
    private Long aid ;

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTemplateId() {
        if (templateId == null) {
            if(type == 1){
                templateId = "yQa6MVSV6Pnu6w9OPiFOZmboOINAoHnAefNHBttBOPk";
            }else{
                templateId = "6eH6kUs_45uipt3Ly7KLrzk8b2nNcRWi3KWKYvJemFk";
            }
        }
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public Long getAid() {
        return aid;
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }
}
